package cn.darkhorse.ticket.basis.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 工序
 * </p>
 *
 * @author wangxinghui
 * @since 2024-01-10
 */
@Getter
@Setter
@TableName("ticket_procedure")
@ApiModel(value = "BasisProcedure对象", description = "工序")
public class TicketProcedure implements Serializable {
  
  private static final long serialVersionUID = 1L;
  
  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  
  @Size(min = 1,max = 20, message = "编码长度不能超过20个字符")
  @ApiModelProperty("编码")
  private String code;
  
  @ApiModelProperty("名称")
  private String name;
  
  private Boolean isAutomatically;
  
  @ApiModelProperty("质检状态（0 否，1是）")
  private Integer inspectionStates;
  
  @ApiModelProperty("不良项目json")
  private String defectiveItems;
  
  @ApiModelProperty("废料json")
  private String wastes;
  
  @ApiModelProperty("附件")
  private String attachments;
  
  @ApiModelProperty("备注")
  private String remarks;
  
  @ApiModelProperty("系统创建时间")
  private LocalDateTime gmtCreate;
  
  @ApiModelProperty("系统更新时间")
  private LocalDateTime gmtModified;
  
  
}
